<template>
    <div>
        <el-form label-width="100px">
            <el-form-item label="资质类别">
                <el-select v-model="form.addAnswerInfo.type" placeholder="请选择">
                    <el-option v-for="item in initData.type" :label="item.name" :value="item.id" :key="item.id">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="资质颁发单位">
                <el-select v-model="form.addAnswerInfo.unit" placeholder="请选择">
                    <el-option v-for="item in initData.unit" :label="item.name" :value="item.id" :key="item.id">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="资质等级">
                <el-input placeholder="请输入内容" v-model="form.addAnswerInfo.level">
                    <el-select v-model="initData.level" slot="prepend" placeholder="请选择" style="width:110px">
                        <el-option label="餐厅名" value="1"></el-option>
                        <el-option label="订单号" value="2"></el-option>
                        <el-option label="用户电话" value="3"></el-option>
                        <el-option label="其他" value="-1"></el-option>
                    </el-select>
                </el-input>
            </el-form-item>
            <el-form-item label="收费标准">
                <el-input v-model="form.addAnswerInfo.fee"></el-input>
            </el-form-item>
            <el-form-item label="专业领域">
                <el-input v-model="form.addAnswerInfo.domain"></el-input>
            </el-form-item>
            <el-form-item label="评价星级">
                <el-select v-model="form.addAnswerInfo.star" placeholder="请选择">
                    <el-option v-for="item in initData.star" :label="item.name" :value="item.id" :key="item.id">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>

export default{
	data(){
		return{
			form:{
				addAnswerInfo:{
					type:'',
					unit:'',
					level:'',
					fee:'',
					domain:'',
					star:''
				}
			},
			initData:{
				type:[],
				unit:[],
				level:[],
				star:[]

			}
		}
	}
}	
</script>